﻿
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace LyProduct.Modules.PartyBuilding.Entities
{
    /// <summary>
    /// 预约
    /// </summary>
    public class Reservation
    {
        /// <summary>
        /// Id
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 预约类型Id
        /// </summary>
        public Guid TypeId { get; set; }
        
        /// <summary>
        /// 预约工作时间
        /// </summary>
        public DateTime WorkTime { get; set; }

        /// <summary>
        /// 工作开展对象规模1.学生2.老师3.其他
        /// </summary>
        public JobDevelopTargetsSscale JobDevelopTargetsSscale { get; set; }

        /// <summary>
        /// 工作内容形式
        /// </summary>
        public string JobContentForm { get; set; }

        /// <summary>
        /// 其他要求
        /// </summary>
        public string OtherRequirement { get; set; }

        /// <summary>
        /// 审核状态1.待审核2.已通过3.已拒绝
        /// </summary>
        public AuditState AuditState { get; set; }

        /// <summary>
        /// 钱
        /// </summary>
        public decimal Money { get; set; }
    }

    /// <summary>
    /// 审核状态1.待审核2.已通过3.已拒绝
    /// </summary>
    public enum AuditState 
    {
        /// <summary>
        /// 待审核
        /// </summary>
        Audit = 1,

        /// <summary>
        /// 已通过
        /// </summary>
        Passed = 2,

        /// <summary>
        /// 已拒绝
        /// </summary>
        Refused = 3,
    }

    /// <summary>
    /// 工作开展对象规模1.学生2.老师3.其他
    /// </summary>
    public enum JobDevelopTargetsSscale
    {
        /// <summary>
        /// 学生
        /// </summary>
        Student = 1,

        /// <summary>
        /// 老师
        /// </summary>
        Teacher = 2,
        
        /// <summary>
        /// 其他
        /// </summary>
        Other = 3
    }
}
